using System;
using System.ComponentModel.Design;

namespace Camalon.Drawing.Design
{

	public sealed class ShapeCollectionEditor:System.ComponentModel.Design.CollectionEditor
	{
		private Type[] _supportedTypes = null;

		public ShapeCollectionEditor(Type type):base(type)
		{
			_supportedTypes = new Type[]{ typeof(Camalon.Drawing.Shape)};// typeof( Camalon.Drawing.Shapes.Ellipse ),typeof( Camalon.Drawing.Shapes.RectangleShape )};
		}

		protected override Type[] CreateNewItemTypes()
		{ 
			return _supportedTypes; 
		}
		protected override object CreateInstance(Type itemType)
		{
			return base.CreateInstance (itemType);
		}
		

	}
}
